package com.bwie.system.mapper;

import com.bwie.common.domain.ProType;
import com.bwie.common.domain.Project;
import com.bwie.common.domain.request.ProjectReq;
import com.bwie.common.domain.response.ProTypeResp;
import com.bwie.common.domain.response.ProjectResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: ProjectMapper
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date:
 */
public interface ProjectMapper {
    List<ProjectResp> projectList(ProjectReq projectReq);

    List<ProType> proTypeListTotal();
    List<ProTypeResp> proTypeList(ProjectReq projectReq);

    void addProject(Project project);

    void addProTypeBatch(@Param("pid") Integer pid, @Param("proTypes") List<ProType> proTypes);

    void updProjectType(ProTypeResp proTypeResp);

    void updProject(Project project);

    ProType findByProjectIdAndTypeId(ProTypeResp proTypeResp);

    ProjectResp selectOneById(ProTypeResp proTypeResp);
}

